package com.example.dddc.service.impl;

import com.example.dddc.dao.UserMapper;
import com.example.dddc.entity.User;
import com.example.dddc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired()
    private UserMapper userMapper;

    @Override
    public User login(String userName, String userPassword) {
        return userMapper.login(userName,userPassword);
    }

    public void setUserMapper(UserMapper userMapper){
        this.userMapper = userMapper;
    }
}
